/**
 * Created by jh on 2018/2/22
 */
export const api = {
    //角色列表
    GET_ROLE_LIST: {
        url: '/roleEntity/roles',
        method: 'get'
    },
    //角色添加
    ADD_ROLE: {
        url: '/roleEntity/roles',
        method: 'post'
    },
    //角色修改
    EDIT_ROLE: {
        url: '/roleEntity/roles',
        method: 'put'
    },
    //角色删除
    DELETE_ROLE: {
        url: '/roleEntity/roles/{id}?id={id}',
        method: 'delete'
    },
    //启用/禁用角色
    ENABLE_USER: {
        url: '/roleEntity/roles/{id}?id={id}',
        method: 'put'
    },
    //下拉菜单
    GET_PULL_LIST: {
        url: '/roleEntity/pullList',
        method: 'get'
    },
    //授权菜单
    GET_AUTH_LIST: {
        url: '/roleEntity/roles/{roleId}/{menuId}}?roleId={roleId}&menuId={menuId}',
        method: 'get'
    },
    // 获取角色详情
    GET_ROLE_DETAIL: {
        url: '/roleEntity/roles/{id}?id={id}',
        method: 'get'
    }
}
